package fightSequencing;

public class SerialNumberGenerator {

	private int serial;
	
	SerialNumberGenerator() {
		this.serial= 0;
	}
	
	private static final class SingletonHolder {
		private static final SerialNumberGenerator INSTANCE = new SerialNumberGenerator();
	}
	
	public static SerialNumberGenerator getInstance() {
		return SerialNumberGenerator.SingletonHolder.INSTANCE;
	}
	
	public int getNextSerial() {
		return ++this.serial;
	}
}
